<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<link type="text/css" href="css/jquery.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.dateMask.js"></script>
<script type="text/javascript" src="js/jquery.maskedinput-1.3.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $("#data").mask("99/99/9999");
            $("#data").bind('apply.mask', function() { //changing the value of an input without keyboard input requires re-applying the mask.
                focusText = input.val();
                var pos = self._checkVal();
                self._writeBuffer();
            });
    	
});
</script>
</head>
<body>

<table class="wwFormTable">
	<s:form action="adicionaAlunosAction" method="post">
		<tr>
			<td><s:textfield name="aluno.nome" label="Nome do Aluno"
				size="30"></s:textfield></td>
			<td><s:date name="aluno.dataNascimento" id="inicioPlanoAtualId"
				format="dd/MM/yyyy" /> <s:textfield id="data" key="inicioData"
				value="%{inicioPlanoAtualId}" label="Data de Nascimento" /></td>
			<td>
				<s:select 
				name="aluno.sexo"
				headerKey="-1"
				headerValue="Selecione o Sexo"
				list="#{'M':'Masculino', 'F':'Feminino'}" 
				label="Sexo" 
				value="%{aluno.sexo}" 
				/>
		</tr>
		<s:submit />
	</s:form>
</table>
</body>
</html>